#implements common function to use globally

def find_in_seq(seq, condition):
    for item in seq:
        if condition(item): 
            return item
    return None
        
def seq_as_string(seq):
    return '[' + (','.join(str(e) for e in seq)) + ']'
